#include <iostream>
using std::cin;
using std::cout;
#define SIZE int(1E5)
char farmer02[SIZE];
int main()
{
    // 123.4
    cin >> farmer02;
    int index = 0;
    while (farmer02[index] != '\0') // while(condition)
    {
        index++;
    }
    // cout << index << std::endl;

    // for( intialize;condition;step){}
    for (int i = index - 1; i >= 0; i--)
    {
        cout << farmer02[i];
    }
    return 0;
}